#include<bits/stdc++.h> 

using namespace std;

int main( )
{
    double a,b,c;
    scanf("%lf %lf %lf",&a,&b,&c);
    printf("%lf\n",a+b+c);
    printf("%lf\n",(a+b+c)/3);
    return 0;
}